package com.spring.controller;

import com.spring.core.anotation.Autowired;
import com.spring.core.anotation.Controller;
import com.spring.core.anotation.RequestMapping;
import com.spring.core.anotation.RequestMapping.MethodType;
import com.spring.service.UserService;

@Controller
@RequestMapping("user")
public class UserController{
	@Autowired
	private UserService userService;

	
	@RequestMapping("add")
	public String userAdd(String id) {
		userService.save();
		return null;
	}
	@RequestMapping(value="list",method=MethodType.POST)
	public String ssdd(String yu) {
		return "/index";
	}

}
